package com.kkwrite.regimen.common.entity.dto.login;

import java.io.Serializable;

/**
 * Created by lisha on 2018/8/14 9:52.
 *
 * @author lisha
 */
public class UserLoginInDTO implements Serializable {
    private static final long serialVersionUID = 5852041972504041143L;
    private String code;

    public boolean isInvalid() {
        return code == null || code.trim().isEmpty();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "UserLoginInDTO{" +
                "code='" + code + '\'' +
                '}';
    }
}
